@extends('default.layouts.collectionPublic')
@section('title', '添加临时采集简历')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/collection/resumeTmpManage.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('/default/css/personal/place.css')}}">
@endsection

@section('content')
    <div class="top_box">
        <div class="logo"><a href="{{url('admin/resume_list')}}">一网云cms</a></div>
    </div>
    {{--采集信息--}}
    <div class="main">
        {{--简历左边主体内容--}}
        <div class="left">
            <div class="mainCon" id="mainCon">
                {{--显示数据来源--}}
                <div class="showSource">
                    <span class="jump"><a href="{{url('admin/resume_jump/'.$reArr['id'].'?page='.$page)}}">跳过该简历</a></span>
                    @if(empty(session('last')))
                        <span class="next"><a href="{{url('admin/resume_next/'.$reArr['id'])}}">下一条</a></span>
                    @else
                        <span class="last"><a>最后一条</a></span>
                    @endif
                    <span class="showInfo"><a href="{{$source}}" target="main">显示数据来源</a></span>
                </div>
                {{--基本信息--}}
                <a name="basicInfo"></a>
                <div class="resumeMange basicInfo" id="basicInfo" style="margin-top: 0px;">
                    {{--基本信息修改前样式--}}
                    <div class="basicInfoCon">
                        <div class="bLfet">
                            <div class="frame" id="avatar">
                                <span class="editavatar">修改头像</span>
                                <img src="{{ $reArr['avatar'] }}"/>
                            </div>
                        </div>
                        <div class="bRight">
                            <div class="basicName">
                                <div class="resumeTit">
                                    <h2>{{ $reArr['name'] }}</h2>
                                    <span class="resumeEdit"><a><i></i>编辑</a></span>
                                </div>
                            </div>
                            <div class="bInfo">
                                <ul>
                                    <li><i class="sex"></i><span class="sexs">{{ $reArr['sex'] }}</span></li>
                                    <li><i class="age"></i><span class="birthday">{{ $reArr['birthday'] }}</span>岁</li>
                                    <li><i class="work"></i><span
                                                class="work_year">{{ $reArr['work_year']  or '无经验'  }}</span></li>
                                    <li><i class="map"></i><span
                                                class="homeaddress">{{ $reArr['homeaddress']  or '未知'  }}</span></li>
                                </ul>
                                <dl>
                                    <dt>求职状态：</dt>
                                    <dd><span class="jobStatus">{{ $reArr['job_status'] }}</span></dd>
                                    <dt>最高学历：</dt>
                                    <dd><span class="education">{{ $reArr['education'] }}</span></dd>
                                </dl>
                                <dl class="suppl">
                                    <dt>婚育状况：</dt>
                                    <dd><span class="marital">{{ $reArr['marital'] or '未填写' }}</span></dd>
                                    <dt>户籍：</dt>
                                    <dd><span class="census">{{ $reArr['census'] or '未填写' }}</span></dd>
                                    <dt>身高：</dt>
                                    <dd><span class="height">{{ $reArr['height'] or '未填写' }}</span></dd>
                                </dl>

                            </div>
                            <div class="contact">
                                <div class="info">
                                    <i class="m"></i><strong class="mobile">{{ $reArr['mobile'] }}</strong><em
                                            class="phoneAddr">（<span
                                                class="phoneAddress">{{ $reArr['phoneAddress']  or '未知'  }}</span>）</em>
                                </div>
                                <div class="bEmail">邮箱：<span class="email">{{ $reArr['email'] or '未填写' }}</span></div>
                            </div>

                        </div>
                    </div>
                    {{--基本信息修改后样式--}}
                    <div class="basicInfoInput">
                        <form action="{{url("personal/basic_info")}}" method="post" name="basicForm" id="basicForm">
                            {{csrf_field()}}
                            <input type="hidden" name="resume_id" id="resume_id" value=""/>
                            <div class="iTitle"><h2>基本资料</h2></div>
                            <div class="iCon">
                                {{--基本资料--}}
                                <dl>
                                    <dt><span class="caption">姓名</span><span class="asterisk">*</span></dt>
                                    <dd><input type="text" name="name" id="name" value="" style="width: 120px;"
                                               placeholder="请输入姓名"
                                               tip="请输入姓名"/></dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">性别</span><span class="asterisk">*</span></dt>
                                    <dd>
                                    <span>
                                        <input type="radio" name="sex" id="sex1" class="radios" value="1"/>
                                        <label for="sex1">男</label>
                                    </span>
                                     <span class="mLeftTen">
                                        <input type="radio" name="sex" id="sex2" class="radios" value="2"/>
                                        <label for="sex2">女</label>
                                    </span>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">工作经验</span></dt>
                                    <dd>
                                        <input id="work_year" name="work_year" type="hidden">
                                        <div id="work_year_select" class="select" style="width: 160px;">
                                            <span><a></a></span><i></i>
                                        </div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">出生日期</span><span class="asterisk">*</span></dt>
                                    <dd>
                                        <div class="showTime" id="showTime">
                                            <input name="birthday" id="birthday" type="hidden" value="">
                                        </div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>

                                <dl>
                                    <dt><span class="caption">现居地</span><span class="asterisk">*</span></dt>
                                    <dd>
                                        <input id="homeaddress" name="homeaddress" type="hidden" value="">
                                        <input id="province" name="province" type="hidden">
                                        <div id="province_select" class="select" style="width: 120px;">
                                            <span><a></a></span><i></i></div>
                                        <input id="area" name="area" type="hidden">
                                        <div id="area_select" class="select" style="margin-left: 5px; width: 120px;">
                                            <span><a></a></span><i></i></div>
                                        <input id="city" name="city" type="hidden">
                                        <div id="city_select" class="select" style="margin-left: 5px; width: 120px;">
                                            <span><a></a></span><i></i></div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">我的位置</span></dt>
                                    <input id="longitude" name="longitude" value="" type="hidden">
                                    <input id="latitude" name="latitude" value="" type="hidden">
                                    <input id="place_name" name="place_name" value="" type="hidden">
                                    <dd>
                                        <span class="set_place" id="set_place">附近好工作,快速被发现</span>
                                    </dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">求职状态</span><span class="asterisk">*</span></dt>
                                    <dd>
                                        <input id="job_status" name="job_status" type="hidden">
                                        <div id="job_status_select" class="select" style="width: 200px;">
                                            <span><a></a></span><i></i>
                                        </div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>

                                <dl>
                                    <dt><span class="caption">最高学历</span><span class="asterisk">*</span></dt>
                                    <dd>
                                        <input id="education" name="education" type="hidden">
                                        <div id="education_select" class="select" style="width:100px;">
                                            <span><a></a></span><i></i></div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">详细地址</span></dt>
                                    <dd>
                                        <input type="text" style="width:320px;" name="address" id="address" value=""
                                               tip="请输入详细地址" placeholder="请输入详细地址"/>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>

                                {{--更多补充信息--}}
                                <div class="supplement">
                                    <div class="moreInfo">
                                        <span class="info">更多补充信息<i></i></span>
                                    </div>
                                </div>

                                <dl>
                                    <dt><span class="caption">户籍</span></dt>
                                    <dd>
                                        <input id="census" name="census" type="hidden" value="">
                                        <input id="censusProvince" name="censusProvince" type="hidden">
                                        <div id="censusProvince_select" class="select" style="width: 120px;">
                                            <span><a></a></span><i></i></div>
                                        <input id="censusArea" name="censusArea" type="hidden">
                                        <div id="censusArea_select" class="select"
                                             style="margin-left: 5px; width: 120px;">
                                            <span><a></a></span><i></i></div>
                                        <input id="censusCity" name="censusCity" type="hidden">
                                        <div id="censusCity_select" class="select"
                                             style="margin-left: 5px; width: 120px;">
                                            <span><a></a></span><i></i></div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">婚姻状况</span></dt>
                                    <dd>
                                        <input id="marital" name="marital" type="hidden">
                                        <div id="marital_select" class="select" style="width:140px;">
                                            <span><a></a></span><i></i></div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">身高</span></dt>
                                    <dd>
                                        <input type="text" style="width:90px;" name="height" id="height"
                                               value="" placeholder="请输入身高"/>
                                        <span style="margin-left: 5px;">cm</span>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                            </div>


                            {{--相框--}}
                            <div class="iFrame">
                                <div class="frame" id="upavatar">
                                    <span class="editavatar">修改头像</span>
                                    <img src=""/>
                                </div>
                                <div class="chkPhoto">
                                    <input type="checkbox" name="chkphoto_open" class="chkphoto_open" id="chkphoto_open"
                                           value="1"/>
                                    <label for="chkphoto_open">简历中隐藏照片</label>
                                </div>
                            </div>

                            {{--联系方式--}}
                            <div class="iTitle"><h2>联系方式</h2></div>
                            <div class="iCon iConOther">
                                <dl>
                                    <dt><span class="caption">手机</span><span class="asterisk">*</span></dt>
                                    <dd><input type="text" name="mobile" id="mobile" value=""
                                               placeholder="请输入手机号码" tip="请输入手机号码"/></dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">邮箱</span></dt>
                                    <dd><input type="text" name="email" id="email" value=""
                                               placeholder="请输入邮箱" tip="请输入邮箱"/></dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">QQ</span></dt>
                                    <dd><input type="text" name="qq" id="qq" value=""
                                               placeholder="请输入QQ"/></dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl style="margin-top:20px;">
                                    <dt></dt>
                                    <dd><input name="btn" class="btn save" id="save" type="submit" value="保存"></dd>
                                    <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                               onclick="cancel('.basicInfoCon','.basicInfoInput',$(this))"></dd>
                                </dl>
                            </div>
                        </form>
                    </div>
                </div>
                {{--求职意向--}}
                <a name="objective"></a>
                <div class="resumeMange objective">
                    <div class="resumeTit">
                        <h2>求职意向</h2>
                        <span class="resumeEdit"><a><i></i>编辑</a></span>
                    </div>
                    {{--求职意向修改前样式--}}
                    <div class="objectiveCon">
                        <dl>
                            <dt>意向岗位:</dt>
                            <dd><span class="intentionjobs">{{ str_limit($reArr['intentionjobs'],40) }}</span></dd>
                        </dl>
                        <dl>
                            <dt>职位类别:</dt>
                            <dd><span class="jobsort">{{ str_limit($reArr['jobsort'],40) }}</span></dd>
                        </dl>
                        <dl>
                            <dt>期望月薪:</dt>
                            <dd><span class="expectedsalary">@if($reArr['isexpectedsalary'])
                                        面议@else{{ $reArr['expectedsalary'] }}@endif</span></dd>
                        </dl>
                        <dl>
                            <dt>工作地点:</dt>
                            <dd><span class="jobarea">{{ str_limit($reArr['jobarea'],40) }}</span></dd>
                        </dl>
                    </div>
                    {{--求职意向修改后样式--}}
                    <div class="resumeMangeInput objectiveInput">
                        <form action="{{url("personal/resume_objective")}}" method="post" name="objectiveForm"
                              id="objectiveForm">
                            {{csrf_field()}}
                            <input type="hidden" name="resume_id" id="resume_id" value=""/>
                            <div class="iCon iConOther">
                                {{--求职意向--}}
                                <dl>
                                    <dt><span class="caption">意向岗位</span><span class="asterisk">*</span></dt>
                                    <dd><input type="text" name="intentionjobs" id="intentionjobs"
                                               value="" placeholder="请输入意向岗位" tip="请输入意向岗位"/></dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">工作地区</span><span class="asterisk">*</span></dt>
                                    <input name="jobarea1" type="hidden" id="jobarea1" value="">
                                    <input name="jobarea2" type="hidden" id="jobarea2" value="">
                                    <input name="jobarea3" type="hidden" id="jobarea3" value="">
                                    <input name="jobarea4" type="hidden" id="jobarea4" value="">
                                    <input name="jobarea5" type="hidden" id="jobarea5" value="">
                                    <dd>
                            <span class="jList" onClick="workplaceInput('','type')">
                                <input type="text" name="workplace" id="workplace" value="{{old('workplace')}}" readonly
                                       style="cursor: text"
                                       placeholder="请选择工作地区"/>
                                <i></i>
                            </span>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">工作岗位</span><span class="asterisk">*</span></dt>
                                    <input name="jobsort1" type="hidden" id="jobsort1" value="">
                                    <input name="jobsort2" type="hidden" id="jobsort2" value="">
                                    <input name="jobsort3" type="hidden" id="jobsort3" value="">
                                    <input name="jobsort4" type="hidden" id="jobsort4" value="">
                                    <input name="jobsort5" type="hidden" id="jobsort5" value="">
                                    <dd>
                            <span class="jList" onClick="posCateInput('')">
                                <input type="text" name="jobsort" id="jobsort" value="" readonly style="cursor: text"
                                       placeholder="请选择工作岗位"/>
                                <i></i>
                            </span>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><span class="caption">期望薪资</span></dt>
                                    <dd>
                                        <input id="expectedsalary" name="expectedsalary" type="hidden">
                                        <div id="expectedsalary_select" class="select" style="width: 130px;">
                                            <span><a></a></span><i></i></div>
                                        <span style="float: left; margin-left: 5px;">元/月</span>
                                        <div class="isexpectedsalary"><input type="checkbox" class="checkBox"
                                                                             name="isexpectedsalary"
                                                                             id="isexpectedsalary"
                                                                             value="1">
                                            <label for="isexpectedsalary">显示面议</label></div>
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>

                                <dl style="margin-top:20px;">
                                    <dt></dt>
                                    <dd><input name="btn" class="btn save" type="submit" id="save" value="保存"></dd>
                                    <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                               onclick="cancel('.objectiveCon','.objectiveInput',$(this))"></dd>
                                </dl>
                            </div>
                        </form>
                    </div>
                </div>
                {{--自我评价--}}
                <a name="selfEvaluation"></a>
                <div class="resumeMange selfEvaluation">
                    <div class="resumeTit">
                        <h2>自我评价</h2>
                        <span class="resumeEdit"><a><i></i>编辑</a></span>
                    </div>
                    {{--自我评价修改前样式--}}
                    <div class="resumeMangeCon selfEvaluationCon">
                        <div class="listCon">
                            <div class="listLeft"><span class="listTime">自我评价</span></div>
                            <div class="listCenter">
                                <div class="info" style="padding-top: 0px;">
                                    <div class="con" style="margin-top: 0px;">{!!nl2br(e($reArr['introduction']))!!}</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {{--自我评价修改后样式--}}
                    <div class="resumeMangeInput selfEvaluationInput">
                        <form action="{{url("personal/resume_objective")}}" method="post" name="evaluationForm"
                              id="evaluationForm">
                            {{csrf_field()}}
                            <input type="hidden" name="resume_id" id="resume_id" value=""/>

                            <div class="iCon iConOther">
                                <dl style=" height:100px;">
                                    <dt style=" height: 100px;"><span class="caption">自我评价</span></dt>
                                    <dd style=" height: 100px;"><textarea style=" width: 394px; height: 88px;"
                                                                          name="introduction" id="introduction"
                                                                          placeholder="请输入介绍或技能介绍"
                                                                          tip="请输入介绍或技能介绍"></textarea></dd>
                                    <dd class="errinfo"></dd>
                                </dl>

                                <dl style="margin-top:20px;">
                                    <dt></dt>
                                    <dd><input name="btn" class="btn save" type="submit" id="save" value="保存"></dd>
                                    <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                               onclick="cancel('.selfEvaluationCon','.selfEvaluationInput',$(this))">
                                    </dd>
                                </dl>
                            </div>
                        </form>
                    </div>
                </div>
                {{--工作经历--}}
                <a name="worker"></a>
                <div class="resumeMange worker">
                    <div class="resumeTit">
                        <h2>工作经历</h2>
                        <span class="resumeEdit resumeAdd"><a><i></i>添加</a></span>
                    </div>
                    {{--工作经历修改前样式--}}
                    <div class="resumeMangeCon workerCon">
                        <div class="workerExp">
                            <div class="workerInput">
                                <form action="{{url("personal/add_work_exp")}}" method="post" name="workForm"
                                      id="workForm">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <input type="hidden" name="otype" id="otype" value=""/>
                                    <input type="hidden" name="id" id="id" value=""/>
                                    <div class="iCon iConOther workInpCon">
                                        <dl>
                                            <dt><span class="caption">公司名称</span><span class="asterisk">*</span></dt>
                                            <dd style="width:316px;"><input type="text" name="company" id="company"
                                                                            style="width:300px;"
                                                                            value="" placeholder="请输入公司名称"
                                                                            tip="请输入公司名称"/></dd>
                                            <dd class="errinfo"></dd>
                                        </dl>

                                        <dl>
                                            <dt><span class="caption">公司性质</span></dt>
                                            <dd>
                                                <input id="comkind" name="comkind" type="hidden">
                                                <div id="comkind_select" class="select" style="width: 160px;">
                                                    <span><a></a></span><i></i></div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl>
                                            <dt><span class="caption">企业规模</span></dt>
                                            <dd>
                                                <input id="scale" name="scale" type="hidden">
                                                <div id="scale_select" class="select"><span><a></a></span><i></i></div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>

                                        <dl>
                                            <dt><span class="caption">所属行业</span></dt>
                                            <dd>
                                                <input id="industry" name="industry" type="hidden">
                                                <div id="industry_select" class="select" style="width: 260px;">
                                                    <span><a></a></span><i></i></div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl>
                                            <dt><span class="caption">在职时间</span><span class="asterisk">*</span></dt>
                                            <dd>
                                                <div class="showStart showTime" id="showStart">
                                                    <input name="starttime" id="starttime" type="hidden" value="">
                                                </div>
                                            </dd>
                                            <dd>-</dd>
                                            <dd>
                                                <div class="showEnd showTime" id="showEnd">
                                                    <input name="endtime" id="endtime" type="hidden" value="">
                                                </div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl>
                                            <dt><span class="caption">职位名称</span><span class="asterisk">*</span></dt>
                                            <dd class="oneWidth"><input type="text" name="post" id="post"
                                                                        class="oneWidth"
                                                                        value="" placeholder="请输入职位名称"
                                                                        tip="请输入职位名称"/></dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl style=" height:100px;">
                                            <dt style=" height: 100px;"><span class="caption">工作描述</span></dt>
                                            <dd style=" height: 100px;"><textarea style=" width: 394px; height: 88px;"
                                                                                  name="content" id="content"
                                                                                  tip="请输入工作描述"
                                                                                  placeholder="请输入工作描述"></textarea>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl style="margin-top:20px;">
                                            <dt></dt>
                                            <dd><input name="btn" id="saveWork" class="btn save" type="submit"
                                                       value="保存"
                                                       onclick="workType(1)"></dd>
                                            <dd class="sAdd" style=" display: none"><input name="btn" id="addSaveWork"
                                                                                           class="btn save add"
                                                                                           onclick="workType(2)"
                                                                                           type="submit"
                                                                                           style="width: 100px"
                                                                                           value="保存并添加"></dd>
                                            <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                                       onclick="workCancel($(this))"></dd>
                                        </dl>
                                    </div>
                                </form>
                            </div>
                        </div>
                        @if(count($workExpArr) > 0)
                            @foreach($workExpArr as $v)
                                <div class="listCon" id="listCon{{$v['id']}}">
                                    <div class="listLeft"><span class="listTime">
                                        <span class="starttime">{{$v['starttime']}}</span>~<span
                                                    class="endtime">{{$v['endtime']}}</span></span></div>
                                    <div class="listCenter">
                                        <div class="tit">
                                            <strong class="post">{{str_limit($v['post'],24)}}</strong>
                                            <b>|</b>
                                            <span class="company">{{str_limit($v['company'],32)}}</span>
                                        </div>
                                        <div class="info">
                                            <ul>
                                                @if(!empty($v['comkind']))
                                                    <li class="comkind">{{$v['comkind']}}</li>
                                                    <b>-</b>@endif
                                                @if(!empty($v['scale']))
                                                    <li class="scale">{{$v['scale']}}</li><b>-</b>@endif
                                                @if(!empty($v['industry']))
                                                    <li class="industry">{{$v['industry']}}</li>@endif
                                            </ul>
                                            <div class="con">{!!nl2br(e($v['content']))!!}</div>
                                        </div>
                                    </div>
                                    <div class="listRight">
                                        <span class="edit"><input name="" value="编辑" type="button"></span>
                                        <span class="del"><input name="" value="删除" type="button"></span>
                                    </div>
                                </div>
                            @endforeach
                        @endif
                    </div>
                </div>
                {{--教育培训经历--}}
                <a name="edu"></a>
                <div class="resumeMange education">
                    <div class="resumeTit">
                        <h2>教育培训经历</h2>
                        <span class="resumeEdit resumeAdd"><a><i></i>添加</a></span>
                    </div>
                    {{--教育培训经历修改前样式--}}
                    <div class="resumeMangeCon educationCon">
                        <div class="eduExp">
                            <div class="eduInput">
                                <div class="iCon iConOther eduInpCon">
                                    <dl id="sel_type">
                                        <dt><span class="caption">教育类型</span><span class="asterisk">*</span></dt>
                                        <dd>
                                            <span>
                                                <input type="radio" name="edu_type" checked id="edu_type1"
                                                       class="radios" value="1"/>
                                                <label for="edu_type1">学历教育</label>
                                            </span>
                                             <span class="mLeftTen">
                                                <input type="radio" name="edu_type" id="edu_type2" class="radios"
                                                       value="2"/>
                                                <label for="edu_type2">技能培训</label>
                                            </span>
                                        </dd>
                                        <dd class="errinfo"></dd>
                                    </dl>
                                    {{--学历教育--}}
                                    <div id="eInput">
                                        <form action="{{url("personal/add_edu_exp")}}" method="post" name="eduForm"
                                              id="eduForm">
                                            {{csrf_field()}}
                                            <input type="hidden" name="resume_id" id="resume_id"
                                                   value="{{$reArr['id']}}"/>
                                            <input type="hidden" name="edu_type" id="edu_type" value="1"/>
                                            <input type="hidden" name="otype" id="otype" value=""/>
                                            <input type="hidden" name="id" id="id" value=""/>

                                            <dl>
                                                <dt><span class="caption">学校名称</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd style="width:296px;"><input type="text" name="school" id="school"
                                                                                style="width:280px;"
                                                                                placeholder="请输入学校名称"
                                                                                tip="请输入学校名称"/></dd>
                                                <dd class="errinfo" id="scherr"></dd>
                                            </dl>
                                            <dl>
                                                <dt><span class="caption">就读时间</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd>
                                                    <div class="eduStart showTime" id="eduStart">
                                                        <input name="starttime" id="starttime" type="hidden" value="">
                                                    </div>
                                                </dd>
                                                <dd>-</dd>
                                                <dd>
                                                    <div class="eduEnd showTime" id="eduEnd">
                                                        <input name="endtime" id="endtime" type="hidden" value="">
                                                    </div>
                                                </dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl class="edu">
                                                <dt><span class="caption">学历</span></dt>
                                                <dd>
                                                    <input id="education" name="education" type="hidden">
                                                    <div id="education_select" class="select" style="width:100px;">
                                                        <span><a></a></span><i></i></div>
                                                </dd>
                                                <dd>
                                                    <div class="isexpectedsalary" style="margin: 0">
                                                        <input type="checkbox" class="checkBox" name="type" id="type"
                                                               value="1">
                                                        <label for="type">是否统招</label>
                                                    </div>
                                                </dd>
                                                <dd class="errinfo"></dd>
                                            </dl>

                                            <dl>
                                                <dt><span class="caption">专业名称</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd class="oneWidth"><input type="text" name="speciality"
                                                                            id="speciality"
                                                                            class="oneWidth"
                                                                            placeholder="请输入专业名称"
                                                                            tip="请输入专业名称"/></dd>
                                                <dd class="errinfo" id="speerr"></dd>
                                            </dl>
                                            <dl style=" height:100px;">
                                                <dt style=" height: 100px;"><span class="caption">描述</span></dt>
                                                <dd style=" height: 100px;"><textarea
                                                            style=" width: 394px; height: 88px;"
                                                            name="description" id="description"
                                                            tip="请输入描述"
                                                            placeholder="请输入描述"></textarea>
                                                </dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl style="margin-top:20px;">
                                                <dt></dt>
                                                <dd><input name="btn" id="saveEdu" class="btn save" onclick="eduType(1)"
                                                           type="submit" value="保存"></dd>
                                                <dd class="sAdd" style=" display: none">
                                                    <input name="btn" id="addSaveEdu" class="btn save"
                                                           onclick="eduType(2)"
                                                           type="submit"
                                                           style="width: 100px" value="保存并添加"></dd>
                                                <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                                           onclick="eduCancel($(this))"></dd>
                                            </dl>
                                        </form>
                                    </div>
                                    {{--培训机构--}}
                                    <div id="tInput" style="display: none;">
                                        <form action="{{url("personal/add_edu_exp")}}" method="post" name="trainForm"
                                              id="trainForm">
                                            {{csrf_field()}}
                                            <input type="hidden" name="resume_id" id="resume_id"
                                                   value="{{$reArr['id']}}"/>
                                            <input type="hidden" name="otype" id="otype" value=""/>
                                            <input type="hidden" name="edu_type" id="edu_type" value="2"/>
                                            <input type="hidden" name="id" id="id" value=""/>
                                            <dl>
                                                <dt><span class="caption">培训机构</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd style="width:296px;"><input type="text" name="school" id="school"
                                                                                style="width:280px;"
                                                                                placeholder="请输入培训机构"
                                                                                tip="请输入培训机构"/></dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl>
                                                <dt><span class="caption">就读时间</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd>
                                                    <div class="eduStart showTime" id="eduStart">
                                                        <input name="starttime" id="starttime" type="hidden" value="">
                                                    </div>
                                                </dd>
                                                <dd>-</dd>
                                                <dd>
                                                    <div class="eduEnd showTime" id="eduEnd">
                                                        <input name="endtime" id="endtime" type="hidden" value="">
                                                    </div>
                                                </dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl>
                                                <dt><span class="caption">培训项目</span><span class="asterisk">*</span>
                                                </dt>
                                                <dd class="oneWidth"><input type="text" name="speciality"
                                                                            id="speciality"
                                                                            class="oneWidth"
                                                                            placeholder="请输入培训项目"
                                                                            tip="请输入培训项目"/></dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl style=" height:100px;">
                                                <dt style=" height: 100px;"><span class="caption">描述</span></dt>
                                                <dd style=" height: 100px;"><textarea
                                                            style=" width: 394px; height: 88px;"
                                                            name="description" id="description"
                                                            tip="请输入描述"
                                                            placeholder="请输入描述"></textarea>
                                                </dd>
                                                <dd class="errinfo"></dd>
                                            </dl>
                                            <dl style="margin-top:20px;">
                                                <dt></dt>
                                                <dd><input name="btn" id="saveEdu" class="btn save" onclick="eduType(1)"
                                                           type="submit" value="保存"></dd>
                                                <dd class="sAdd" style=" display: none">
                                                    <input name="btn" id="addSaveEdu" class="btn save"
                                                           onclick="eduType(2)"
                                                           type="submit"
                                                           style="width: 100px" value="保存并添加"></dd>
                                                <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                                           onclick="eduCancel($(this))"></dd>
                                            </dl>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        @if(count($eduExpArr) > 0)
                            @foreach($eduExpArr as $v)
                                <div class="listCon" id="listCon{{$v['id']}}">
                                    <div class="listLeft"><span class="listTime">
                                        <span class="starttime">{{$v['starttime']}}</span>~<span
                                                    class="endtime">{{$v['endtime']}}</span>
                                    </span></div>
                                    <div class="listCenter">
                                        <div class="tit">
                                            <strong class="education">@if($v['edu_type'] == '1'){{$v['education']}}@else{{$v['speciality']}}@endif</strong>
                                            <b>|</b>
                                            <span class="school">{{str_limit($v['school'],44)}}</span>
                                        </div>
                                        <div class="info">
                                            <span class="speciality">@if($v['edu_type'] == '1'){{str_limit($v['speciality'],50)}}@endif</span>
                                            <div class="con">{!!nl2br(e($v['description']))!!}</div>
                                        </div>
                                    </div>
                                    <div class="listRight">
                                        <span class="edit"><input name="" value="编辑" type="button"></span>
                                        <span class="del"><input name="" value="删除" type="button"></span>
                                    </div>
                                </div>
                            @endforeach
                        @endif
                    </div>
                </div>
                {{--项目经验--}}
                <a name="project"></a>
                <div class="resumeMange project">
                    <div class="resumeTit">
                        <h2>项目经验</h2>
                        <span class="resumeEdit resumeAdd"><a><i></i>添加</a></span>
                    </div>
                    {{--项目经验修改前样式--}}
                    <div class="resumeMangeCon projectCon">
                        <div class="projectExp">
                            <div class="projectInput">
                                <form action="{{url("personal/add_project_exp")}}" method="post" name="projectForm"
                                      id="projectForm">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <input type="hidden" name="otype" id="otype" value=""/>
                                    <input type="hidden" name="id" id="id" value=""/>
                                    <div class="iCon iConOther projectInpCon">
                                        <dl>
                                            <dt><span class="caption">项目名称</span><span class="asterisk">*</span></dt>
                                            <dd style="width:296px;"><input type="text" name="project_name"
                                                                            id="project_name"
                                                                            style="width:280px;" placeholder="请输入项目名称"
                                                                            tip="请输入项目名称"/></dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl>
                                            <dt><span class="caption">项目时间</span><span class="asterisk">*</span></dt>
                                            <dd>
                                                <div class="projectStart showTime" id="projectStart">
                                                    <input name="starttime" id="starttime" type="hidden" value="">
                                                </div>
                                            </dd>
                                            <dd>-</dd>
                                            <dd>
                                                <div class="projectEnd showTime" id="projectEnd">
                                                    <input name="endtime" id="endtime" type="hidden" value="">
                                                </div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>


                                        <dl>
                                            <dt><span class="caption">担任职务</span></dt>
                                            <dd class="oneWidth"><input type="text" name="post" id="post"
                                                                        class="oneWidth"
                                                                        placeholder="请输入担任职务"
                                                                        tip="请输入担任职务"/></dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl style=" height:100px;">
                                            <dt style=" height: 100px;"><span class="caption">项目介绍</span></dt>
                                            <dd style=" height: 100px;"><textarea style=" width: 394px; height: 88px;"
                                                                                  name="content" id="content"
                                                                                  tip="请输入项目介绍"
                                                                                  placeholder="请输入项目介绍"></textarea>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>

                                        <dl style="margin-top:20px;">
                                            <dt></dt>
                                            <dd><input name="btn" id="saveProject" class="btn save"
                                                       onclick="projectType(1)"
                                                       type="submit" value="保存"></dd>
                                            <dd class="sAdd" style=" display: none">
                                                <input name="btn" id="addSaveProject" class="btn save"
                                                       onclick="projectType(2)" type="submit"
                                                       style="width: 100px" value="保存并添加"></dd>
                                            <dd><input name="btn" class="btn save cancel" type="button" value="取消"
                                                       onclick="projectCancel($(this))"></dd>
                                        </dl>
                                    </div>
                                </form>
                            </div>
                        </div>
                        @if(count($projectExpArr) > 0)
                            @foreach($projectExpArr as $v)
                                <div class="listCon" id="listCon{{$v['id']}}">
                                    <div class="listLeft"><span class="listTime">
                                        <span class="starttime">{{$v['starttime']}}</span>~<span
                                                    class="endtime">{{$v['endtime']}}</span>
                                    </span></div>
                                    <div class="listCenter">
                                        <div class="tit">
                                            <strong class="project_name">{{str_limit($v['project_name'],24)}}</strong>
                                            <b>|</b>
                                            <span>担任职位：</span><span class="post">{{str_limit($v['post'],18)}}</span>
                                        </div>
                                        <div class="info">
                                            <span class="con">{!!nl2br(e($v['content']))!!}</span>
                                        </div>
                                    </div>
                                    <div class="listRight">
                                        <span class="edit"><input name="" value="编辑" type="button"></span>
                                        <span class="del"><input name="" value="删除" type="button"></span>
                                    </div>
                                </div>
                            @endforeach
                        @endif

                    </div>

                </div>
                {{--语言能力--}}
                <a name="language"></a>
                <div class="resumeMange language">
                    <div class="resumeTit">
                        <h2>语言能力</h2>
                        <span class="resumeEdit"><a><i></i>编辑</a></span>
                    </div>
                    {{--语言能力修改前样式--}}
                    <div class="resumeMangeCon languageCon">
                        <div class="listItem">
                            <ul>
                                @if(count($languageArr) > 0)
                                    @foreach($languageArr as $v)
                                        <li>
                                            <strong class="name">{{$v['language']}}</strong><em>|</em>
                                        <span class="degree">
                                            <span class="level">{{$v['degree']}}</span>
                                            <em>|</em>
                                            <span class="cert">{{$v['level']}}</span>
                                        </span>
                                        </li>
                                    @endforeach
                                @endif
                            </ul>
                        </div>
                    </div>
                    {{--语言能力修改后样式--}}
                    <div class="resumeMangeInput iCon languageInput">
                        <div class="listItemSel">
                            <div class="addAbility">添加您掌握的语言能力；最多可以添加6门语言</div>
                            <div class="selAbility">
                                <form method="post" name="languageForm" id="languageForm" onsubmit="return false">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <div class="additions"><a><i></i>增加一项</a></div>
                                    <div class="sopt">
                                    <span><input name="btn" id="saveLanguageSub" class="btn save" type="submit"
                                                 value="保存" onclick="saveLanguage($(this))"></span>
                                    <span><input name="btn" class="btn save cancel" type="button"
                                                 onclick="cancel('.languageCon','.languageInput',$(this))"
                                                 value="取消"></span>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                {{--技能专长--}}
                <a name="skill"></a>
                <div class="resumeMange skill">
                    <div class="resumeTit">
                        <h2>技能专长</h2>
                        <span class="resumeEdit"><a><i></i>编辑</a></span>
                    </div>
                    {{--技能专长修改前样式--}}
                    <div class="resumeMangeCon skillCon">
                        <div class="listItem">
                            <ul>
                                @if(count($skillArr) > 0)
                                    @foreach($skillArr as $v)
                                        <li>
                                            <strong class="name">{{$v['skillname']}}</strong><em>|</em>
                                        <span class="degree">
                                            <span class="level">{{$v['degree']}}</span>
                                        </span>
                                        </li>
                                    @endforeach
                                @endif
                            </ul>
                        </div>

                    </div>
                    {{--技能专长修改后样式--}}
                    <div class="resumeMangeInput iCon skillInput">
                        <div class="listItemSel">
                            <div class="addAbility">添加您掌握的技能、工具或擅长的领域；最多可以添加10项技能专长</div>
                            <div class="selAbility">
                                <form method="post" name="skillForm" id="skillForm" onsubmit="return false">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <div class="additions"><a><i></i>增加一项</a></div>
                                    <div class="sopt">
                                    <span><input name="btn" id="saveSkillSub" class="btn save" type="submit" value="保存"
                                                 onclick="saveSkill($(this))"></span>
                                    <span><input name="btn" class="btn save cancel" type="button"
                                                 onclick="cancel('.skillCon','.skillInput',$(this))" value="取消"></span>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                {{--证书--}}
                <a name="certificate"></a>
                <div class="resumeMange certificate">
                    <div class="resumeTit">
                        <h2>证书</h2>
                        <span class="resumeEdit"><a><i></i>编辑</a></span>
                    </div>
                    {{--证书修改前样式--}}
                    <div class="resumeMangeCon certificateCon">
                        <div class="listItem">
                            <ul>
                                @if(count($certificateArr) > 0)
                                    @foreach($certificateArr as $v)
                                        <li>
                                            <strong class="name">{{$v['certificate_name']}}</strong><em>|</em>
                                        <span class="degree">
                                            <span class="level">{{$v['gettime']}}年获得</span>
                                        </span>
                                        </li>
                                    @endforeach
                                @endif
                            </ul>
                        </div>
                    </div>
                    {{--证书修改后样式--}}
                    <div class="resumeMangeInput iCon certificateInput">
                        <div class="listItemSel">
                            <div class="addAbility">添加您获得的专业技能、职业证书或职称；最多可以添加10份证书</div>
                            <div class="selAbility">
                                <form method="post" name="certificateForm" id="certificateForm" onsubmit="return false">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <div class="additions"><a><i></i>增加一项</a></div>
                                    <div class="sopt">
                                    <span><input name="btn" id="saveCertificateSub" class="btn save" type="submit"
                                                 value="保存" onclick="saveCertificate($(this))"></span>
                                    <span><input name="btn" class="btn save cancel" type="button"
                                                 onclick="cancel('.certificateCon','.certificateInput',$(this))"
                                                 value="取消"></span>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                {{--其它信息--}}
                <a name="other"></a>
                <div class="resumeMange other">
                    <div class="resumeTit">
                        <h2>其它信息</h2>
                        <span class="resumeEdit resumeAdd"><a><i></i>添加</a></span>
                    </div>
                    {{--其它信息修改前样式--}}
                    <div class="resumeMangeCon otherCon">
                        <div class="otherInfo" style="display: none">
                            <div class="otherInput">
                                <form action="{{url("personal/add_other")}}" method="post" name="otherForm"
                                      id="otherForm">
                                    {{csrf_field()}}
                                    <input type="hidden" name="resume_id" id="resume_id" value="{{$reArr['id']}}"/>
                                    <input type="hidden" name="otype" id="otype" value=""/>
                                    <input type="hidden" name="id" id="id" value=""/>
                                    <div class="iCon iConOther otherInpCon">
                                        <dl>
                                            <dt><span class="caption">主题</span><span class="asterisk">*</span></dt>
                                            <dd>
                                                <input id="title" name="title" type="hidden">
                                                <div id="title_select" class="select" style="width: 160px;">
                                                    <span><a></a></span><i></i></div>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl style=" height:100px;">
                                            <dt style=" height: 100px;"><span class="caption">内容描述</span><span
                                                        class="asterisk">*</span></dt>
                                            <dd style=" height: 100px;">
                                            <textarea style=" width: 394px; height: 88px;"
                                                      name="content" id="content"
                                                      tip="请输入内容描述述"
                                                      placeholder="请输入内容描述"></textarea>
                                            </dd>
                                            <dd class="errinfo"></dd>
                                        </dl>
                                        <dl style="margin-top:20px;">
                                            <dt></dt>
                                            <dd>
                                                <input name="btn" id="saveProject" class="btn save"
                                                       onclick="otherType(1)"
                                                       type="submit" value="保存">
                                            </dd>
                                            <dd class="sAdd" style=" display: none">
                                                <input name="btn" id="addSaveProject" class="btn save"
                                                       onclick="otherType(2)" type="submit"
                                                       style="width: 100px" value="保存并添加">
                                            </dd>
                                            <dd>
                                                <input name="btn" class="btn save cancel" type="button" value="取消"
                                                       onclick="otherCancel($(this))">
                                            </dd>
                                        </dl>
                                    </div>
                                </form>
                            </div>
                        </div>
                        @if(count($otherArr) > 0)
                            @foreach($otherArr as $v)
                                <div class="listCon" id="listCon{{$v['id']}}">
                                    <div class="listLeft"><span
                                                class="listTime otherTit">{{msubstr($v['title'],0,6)}}</span></div>
                                    <div class="listCenter">
                                        <div class="tit titOther" style="position: absolute; width: 0px;"></div>
                                        <div class="info" style="padding:3px 37px 30px 25px;;"><p>{!!nl2br(e($v['content']))!!}</p>
                                        </div>
                                    </div>
                                    <div class="listRight">
                                        <span class="edit"><input name="" value="编辑" type="button"></span>
                                        <span class="del"><input name="" value="删除" type="button"></span>
                                    </div>
                                </div>
                            @endforeach
                        @endif
                    </div>
                    {{--其它信息修改后样式--}}
                </div>
                {{--添加到正式库--}}
                <div class="addFormalLib">
                    <p><input name="btn" type="button" value="添加正式库" onclick="addFormalLib($(this),'{{$reArr['id']}}')">
                    </p>
                </div>
            </div>
        </div>
        {{--简历右边分帧原数据信息内容--}}
        <div class="right">
            <iframe src="{{$source}}" frameborder="0" width="100%" height="100%" name="main"></iframe>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{Resources::jsOption('resume')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.validate.extend.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.form.js')}}"></script>
    {{--临时采集数据--}}
    <script type="text/javascript" src="{{asset('/default/js/collection/resume_tmp_manage.js')}}"></script>
    <!--弹出层显示时间加载插件-->
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.autoTime.js')}}"></script>
    <!--地区三级联动-->
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.select.area.js')}}"></script>
    {{--工作岗位--}}
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.position.js')}}"></script>
    {{--工作地区--}}
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.area.js')}}"></script>
    {{--技能专长--}}
    <script type="text/javascript" src="{{asset('/default/js/personal/optname.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.skill.js')}}"></script>
    {{--证书--}}
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.certificate.js')}}"></script>
    {{--设置地标--}}
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.setPlace.js')}}"></script>

    <script type="text/javascript">
        var mainCon = $('#mainCon'); //主体对象
        var _token = "{{csrf_token()}}";
        //简历基本信息-----------------------------------------------------------------------------------------------------
        var resumeJson = {!!  $resumeJson !!};
        var objectiveJson = {!!  $objectiveJson !!};
        var evaluationJson = {!!  $evaluationJson !!};
        //简历基本信息select赋值
        option_work_year.unshift({"text": "无经验", "value": ''});
        var selectWork_year = mainCon.find('#basicForm').find("#work_year").select({
            defaults: null,
            defaultFill: [{"value": '', "text": "请选择"}],
            optionData: option_work_year
        });
        var selectStatus = mainCon.find('#basicForm').find("#job_status").select({
            defaults: null,
            defaultFill: [{"value": '', "text": "请选择"}],
            optionData: option_job_status
        });
        var selectEdu = mainCon.find('#basicForm').find("#education").select({
            defaults: null,
            defaultFill: [{"value": '', "text": "请选择"}],
            optionData: option_education
        });
        var selectMarital = mainCon.find('#basicForm').find("#marital").select({
            defaults: null,
            defaultFill: [{"value": '', "text": "请选择"}],
            optionData: option_marital
        });
        option_expectedsalary.unshift({"text": "请选择", "value": ''});
        var selectExpectedsalary = mainCon.find('#objectiveForm').find("#expectedsalary").select({
            optionData: option_expectedsalary
        });
        //设置地标
        mainCon.find('.basicInfo').find('.basicInfoInput').setPlace({
            longitude: "#longitude",    		//设置地标经度
            latitude: "#latitude", 				//设置地标纬度
            place_name: "#place_name",			//设置地标(乡镇)名称
            set_place: "#set_place",       		//地标的点击按钮
            homeaddress: '#homeaddress',   	    //选择那个县级市下面的居住地
            place_url: '/personal/place_map?resume_id=' + resumeJson.id   	    //地标地图url
        });
        //日历时间
        $("#showTime").autoTime({
            year: "year",                               //弹出层年份
            month: "month",                             //弹出层月份
            established: '#birthday',                   //成立年份id
            hiddenInp: resumeJson.birthday              //成立年份id
        });
        //所在地三级地区联动
        $("#homeaddress").selectArea({
            'province': $('#province'),
            'area': $('#area'),
            'city': $('#city'),
            'selected': "" + resumeJson.homeaddress
        });
        //户籍三级地区联动
        $("#census").selectArea({
            'province': $('#censusProvince'),
            'area': $('#censusArea'),
            'city': $('#censusCity'),
            'selected': "" + resumeJson.census
        });

        //工作经历-----------------------------------------------------------------------------------------------------
        var appendWorkJson;
        var selectComkind = mainCon.find('.worker').find("#comkind").select({
            optionData: option_comkind,
            defaults: null
        });
        var selectScale = mainCon.find('.worker').find("#scale").select({
            optionData: option_employee_num,
            defaults: null
        });
        var selectIndustry = mainCon.find('.worker').find("#industry").select({
            optionData: option_industry,
            defaults: null
        });
        //获取工作经历空表单
        var wInput = mainCon.find('.worker').find('.workerExp').html();

        //工作经历入职时间
        mainCon.find('.worker').find("#showStart").autoTime({
            year: "startYear",                               //弹出层年份
            month: "startMonth",                             //弹出层月份
            established: '#starttime'                       //入职时间
        });
        mainCon.find('.worker').find("#showEnd").autoTime({
            year: "endYear",                               //弹出层年份
            month: "endMonth",                             //弹出层月份
            established: '#endtime',                       //入职时间
            toDate: true                                    //是不是显示至今
        });

        //教育经历  -----------------------------------------------------------------------------------------------------
        var appendEduJson;
        var selectEducation = mainCon.find('.education').find("#education").select({
            optionData: option_education,
            defaults: null
        });
        //获取教育经历空表单
        var eduInput = mainCon.find('.education').find('.eduExp').html();

        //教育经历入职时间
        mainCon.find('.education').find("#eduStart").autoTime({
            year: "startYear",                               //弹出层年份
            month: "startMonth",                             //弹出层月份
            established: '#starttime'                       //入职时间
        });
        mainCon.find('.education').find("#eduEnd").autoTime({
            year: "endYear",                               //弹出层年份
            month: "endMonth",                             //弹出层月份
            established: '#endtime',                       //入职时间
            toDate: true                                    //是不是显示至今
        });
        //项目经验  -----------------------------------------------------------------------------------------------------
        var appendProjectJson;
        //获取项目经验空表单
        var projectInput = mainCon.find('.project').find('.projectExp').html();

        //项目经验入职时间
        mainCon.find('.project').find("#projectStart").autoTime({
            year: "startYear",                               //弹出层年份
            month: "startMonth",                             //弹出层月份
            established: '#starttime'                       //入职时间
        });
        mainCon.find('.project').find("#projectEnd").autoTime({
            year: "endYear",                               //弹出层年份
            month: "endMonth",                             //弹出层月份
            established: '#endtime',                       //入职时间
            toDate: true                                    //是不是显示至今
        });
        //语言能力  -----------------------------------------------------------------------------------------------------
        var languageJson = {!!  $languageJson !!};
        var languageid = 0;

        //技能专长  -----------------------------------------------------------------------------------------------------
        var skillJson = {!!  $skillJson !!};
        var skillid = 0;

        //证书  -----------------------------------------------------------------------------------------------------
        var certificateJson = {!!  $certificateJson !!};
        var certificateid = 0;

        //其他信息  -----------------------------------------------------------------------------------------------------
        var otherJson = {!!  $otherJson !!};
        var appendOtherJson;
        //获取项目经验空表单
        var otherInput = mainCon.find('.otherInfo').html();
        option_title.push({"text": "自定义", "value": 'zdy'});
    </script>

    <script type="text/javascript">
        $(function(){
            //基本信息编辑
            mainCon.find("#basicInfo").find('.basicInfoCon').find('.resumeEdit a').click(function(){
                editorBasic();
            });
            //求职意向
            mainCon.find('.objective').find('.resumeEdit a').click(function(){
                editObjective($(this));
            });
            //自我评价
            mainCon.find('.selfEvaluation').find('.resumeEdit a').click(function(){
                editEvaluation($(this));
            });
            //工作经历
            mainCon.find('.worker').find('.resumeAdd a').click(function(){
                addWorkExp($(this), 'add');
            });
            @if(count($workExpArr) > 0)
                @foreach($workExpArr as $v)
                    mainCon.find('.worker').find('#listCon' + '{{$v['id']}}').find('.edit input').click(function(){
                editWorker($(this), '{{$v['id']}}');
            });
            mainCon.find('.worker').find('#listCon' + '{{$v['id']}}').find('.del input').click(function(){
                delWorker('{{$v['id']}}')
            });
            @endforeach
            @endif
            //教育培训经历
            mainCon.find('.education').find('.resumeAdd a').click(function(){
                addEduExp($(this), 'add');
            });
            @if(count($eduExpArr) > 0)
                @foreach($eduExpArr as $v)
                    mainCon.find('.education').find('#listCon' + '{{$v['id']}}').find('.edit input').click(function(){
                editEdu($(this), '{{$v['id']}}');
            });
            mainCon.find('.education').find('#listCon' + '{{$v['id']}}').find('.del input').click(function(){
                delEdu('{{$v['id']}}')
            });
            @endforeach
            @endif
            //项目经验
            mainCon.find('.project').find('.resumeAdd a').click(function(){
                addProjectExp($(this), 'add');
            });
            @if(count($projectExpArr) > 0)
                @foreach($projectExpArr as $v)
                    mainCon.find('.project').find('#listCon' + '{{$v['id']}}').find('.edit input').click(function(){
                editProject($(this), '{{$v['id']}}');
            });
            mainCon.find('.project').find('#listCon' + '{{$v['id']}}').find('.del input').click(function(){
                delProject('{{$v['id']}}')
            });
            @endforeach
            @endif

            //语言能力编辑
            mainCon.find('.language').find('.resumeEdit a').click(function(){
                editorLanguage($(this));
            });
            //增加语言能力选项
            mainCon.find('.language').find('.additions a').click(function(){
                languageid++;
                addLanguageOpt($(this), languageid);
            });

            //技能专长编辑
            mainCon.find('.skill').find('.resumeEdit a').click(function(){
                editorSkill($(this));
            });
            //增加技能选项
            mainCon.find('.skill').find('.additions a').click(function(){
                skillid++;
                addSkillOpt($(this), skillid);
            });

            //证书编辑
            mainCon.find('.certificate').find('.resumeEdit a').click(function(){
                editorCertificate($(this));
            });
            //增加证书选项
            mainCon.find('.certificate').find('.additions a').click(function(){
                certificateid++;
                addCertificateOpt(certificateid);
            });

            //其他信息
            mainCon.find('.other').find('.resumeAdd a').click(function(){
                addOther($(this), 'add');
            });
            @if(count($otherArr) > 0)
            @foreach($otherArr as $v)
            mainCon.find('.other').find('#listCon' + '{{$v['id']}}').find('.edit input').click(function(){
                editOther($(this), '{{$v['id']}}');
            });
            mainCon.find('.other').find('#listCon' + '{{$v['id']}}').find('.del input').click(function(){
                delOther('{{$v['id']}}')
            });
            @endforeach
            @endif
        });
    </script>

    <script>
        /**
         * 添加正式库
         * param resume_id
         */
        function addFormalLib(othis, resume_id){
            $.ajax({
                url: '/admin/add_formal_lib',
                dataType: "json",
                data: {//要传递的数据
                    resume_id: resume_id,
                    _token: "{{csrf_token()}}"
                },
                type: "POST",
                beforeSend: function(){
                    othis.val('请稍候...');
                    othis.attr('disabled', true);
                },
                success: function(data){
                    if(data.status == 0){
                        layer.msg(data.msg);
                    }else if(data.status == 1){
                        var str = '';
                        str += '<div class="mailPos">';
                        str += '<p class="green tit"><i class="succ"></i><span>' + data.msg + '</span></p>';
                        str += '<p class="green">您的用户名为:<strong class="name">' + data.mobile + '</strong></p>';
                        str += '<p class="green">您的密码为:<strong class="name">' + data.password + '</strong></p>';
                        str += '</div>';
                        layer.open({
                            type: 1,
                            title: "用户信息",
                            move: false,
                            skin: 'layui-layer-rim', //加上边框
                            area: '500px',
                            content: str
                        });
                    }else if(data.status == 2){
                        layer.msg(data.msg, {icon: 5});
                    }
                },
                error: function(data){
                    var msgErr = '';
                    var errors = $.parseJSON(data.responseText);
                    $.each(errors, function(index, value){
                        msgErr += "<p style='line-height: .4rem; width: 100%'>" + value + ";</p>";
                    });
                    layerMsg(msgErr, 2);
                    othis.val('添加正式库');
                    othis.removeAttr('disabled');
                },
                complete: function(){
                    othis.val('添加正式库');
                    othis.removeAttr('disabled');
                }
            });
        }
    </script>

@endsection